package com.oscroll.factory.practice.simple;


public class Test {

    public static void main(String[] args) {
//        Car car = CarFactory.getCar("audi");
//        car.drive();

        Car car = CarReflectFactory.getCar(BMW.class);
        car.drive();

    }

}
